
public class Car {
	
	private Engine engine;
	
	//turn on the car
	
	public void startCar(){
		//verify oil
		//verify battery
		//verify water
		
		if(!this.isStarted())
			engine.startEngine();
		
		
	}
	
	public boolean isStarted(){
		return engine.isStarted();
	}
	
	//turn on the engine
	public Car(){
		this.engine = new Engine();
	}
	
	//getEngine
	public Engine getEngine(){
		return this.engine;
	}
	
	//setEngine
	public void setEngine(Engine engine){
		this.engine = engine;
	}

}
